//
//  SplitViewDelegate.h
//  MasterDetail
//
//  Created by Andreas Katzian on 15.05.10.
//  Copyright 2010 Blackwhale GmbH. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol SplitViewDelegate_Delgete

-(void)segmentChanged_Day;  
-(void)segmentChanged_Month;
-(void)segmentChanged_Week;
-(void)SplitViewDelegate_Delgete_showInfo:(UIBarButtonItem *) barbuttonitem;

@end
@interface SplitViewDelegate : NSObject <UISplitViewControllerDelegate> {
    id <SplitViewDelegate_Delgete> delgete;	//主要是用來當副圖的titlrbar按鈕改變 的委託事件 如切換日週月
    
    
    UISegmentedControl *segmentedControl;     
    UIButton *infoButton;    
    UIBarButtonItem *info;  
    
    UIBarButtonItem *segmentBarItem ;    
    UIPopoverController* popController;
    UIBarButtonItem *showmasterUIBarButtonItem; 
    
    UITabBarController  *MasterController;    
    UIToolbar* toolBar;
	UIViewController* detailController;
	id AppleDeglate;    
    
}
@property(assign) id <SplitViewDelegate_Delgete> delgete;
@property(nonatomic, retain) UIToolbar* toolBar;
@property(nonatomic, retain) UIViewController* detailController;
@property(nonatomic, retain) UITabBarController  *MasterController;

@property(nonatomic, assign) UIPopoverController* popController;
@property(nonatomic, assign) UIBarButtonItem *showmasterUIBarButtonItem; 

@property(assign) id AppleDeglate;


-(void)init_toolbar ;
-(void)add_toolbar_item;
-(void)segmentChanged:(id)sender;
-(void)showInfo;
-(void)showMaster;
-(void)init_popController;

@end
